﻿Imports System.ComponentModel
Imports System.Web.UI

Namespace DotNetNuke.Modules.ActiveForums.Controls
    Public Class DisplayTemplate
        Inherits System.Web.UI.Control
        <DefaultValue(""), Browsable(False), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
        Public Property Text() As String
            Get
                If Me.Controls.Count > 0 AndAlso TypeOf Me.Controls(0) Is LiteralControl Then
                    Return DirectCast(Me.Controls(0), LiteralControl).Text
                End If
                Return ""
            End Get
            Set(ByVal value As String)
                Me.Controls.Clear()
                Me.Controls.Add(New LiteralControl(value))
            End Set
        End Property
    End Class
End Namespace

